<template>
    <view>
        <u-navbar title="登录" autoBack leftIconColor="white" :placeholder="true" titleStyle="color:white"></u-navbar>
        <image class="logo-img" :src="$cdn_img('/static/base/logo.png')"></image>
        <view>
            <a-account-login @reset-pass-word="reset" @change-login-type="state.isMobile = true" @submit="submit" />
        </view>
    </view>
</template>

<script>
export default {
    data() {
        return {};
    },
    methods: {
        reset(e) {
            console.log(e);
        },
        submit(e) {
            uni.setStorage({
                key: 'isLogin',
                data: e.password,
                success: function () {
                    uni.switchTab({
                        url: '/pages/tabbar/index'
                    });
                }
            });
        },
        back() {}
    }
};
</script>

<style lang="scss" scoped>
.logo-img {
    width: 155rpx;
    height: 155rpx;
    display: block;
    margin: 60rpx 0 40rpx 40rpx;
    border-radius: 16rpx;
}

.title {
    font-family: SimHei;
    font-size: 24rpx;
    font-stretch: normal;

    letter-spacing: 0px;
    color: #000000;
    padding: 32rpx;
}
</style>
